// 引入mongoose
const mongoose = require('mongoose')
// 创建Schema
const Schema = mongoose.Schema
// 评价的模块
const AssessSchema = new Schema({
    // 商品的名称
    flowerName: {
        type: String,
        required: true,
    },
    // 订单的_id
    commodityOrders_id:{
        type:String,
        required: true,
    },
    // 用户名称
    userName:{
        type: String,
        required: true,
    },
    messageAry:{
        type:Array,
        default:[]
    }
})

module.exports = Assess = mongoose.model('assess', AssessSchema)
